package com.iwhalecloud.bss.kite.cucc.manager.scene.service.query;

import com.iwhalecloud.bss.kite.cucc.manager.api.ILocalQuerySceneInstService;
import com.iwhalecloud.bss.kite.manager.inst.KiteOfferInst;
import com.iwhalecloud.bss.kite.manager.inst.KiteOfferInstAcct;
import com.iwhalecloud.bss.kite.manager.inst.KiteOfferInstContract;
import com.iwhalecloud.bss.kite.manager.scene.service.query.QueryAdditionalOfferInstService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class LocalQuerySceneInstService implements ILocalQuerySceneInstService {

	@Resource(name = "manager.localQueryOfferInstAcctRelService")
	private LocalQueryOfferInstAcctRelService queryOfferInstAcctRelService;

	@Resource(name = "manager.localQueryOfferInstContractRelService")
	private LocalQueryOfferInstContractRelService queryOfferInstContractRelService;

    @Resource(name = "manager.localQueryAdditionalOfferInstService")
    private LocalQueryAdditionalOfferInstService localQueryAdditionalOfferInstService;

	@Override
	public List<KiteOfferInstAcct> listOfferInstAcctRels(String sceneInstId) {
		return queryOfferInstAcctRelService.listOfferInstAcctRels(sceneInstId);
	}

	@Override
	public List<KiteOfferInstContract> listOfferInstContractRels(String sceneInstId) {
		//return queryOfferInstContractRelService.listOfferInstContractRels(sceneInstId);
		return null;
	}


    @Override
    public List<KiteOfferInst> listAdditionalOfferInstsFromMemOfferInst(String custId, String offerInstId) {
        return localQueryAdditionalOfferInstService.listAdditionalOfferInstsFromMemOfferInst(custId, offerInstId);
    }
}
